package com.runewbie.linkedlist;

import java.util.Scanner;

/**
 * @description:  招银网络牛客笔试1
 * @author: runewbie
 * @date:   2020年6月7日 下午1:56:48
 * @version V1.0
 *
 */
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) {// 注意，如果输入是多个测试用例，请通过while循环处理多个测试用例
            String line = in.nextLine();
            char[] charArray = line.toCharArray();
            StringBuilder a = new StringBuilder();
            StringBuilder b = new StringBuilder();
            for (char c : charArray) {
				if ('*' == c) {
					a.append(c);
				}else {
					b.append(c);
				}
			}
            System.out.println(a.append(b));
        }
    }
}